import request from '@/utils/request'

// 查询员工基本信息列表
export function listEducation(query) {
  return request({
    url: '/manage/education/list',
    method: 'get',
    params: query
  })
}
// 修改后的查询员工基本信息列表
export function listEducationInfo(query) {
  return request({
    url: '/manage/education/listInfo',
    method: 'get',
    params: query
  })
}
// 查询员工基本信息详细
export function getEducation(id) {
  return request({
    url: '/manage/education/' + id,
    method: 'get'
  })
}

// 新增员工基本信息
export function addEducation(data) {
  return request({
    url: '/manage/education',
    method: 'post',
    data: data
  })
}

// 修改员工基本信息
export function updateEducation(data) {
  return request({
    url: '/manage/education',
    method: 'put',
    data: data
  })
}

// 删除员工基本信息
export function delEducation(id) {
  return request({
    url: '/manage/education/' + id,
    method: 'delete'
  })
}
